<?php
namespace app\controller;

use think\facade\Db;

class Test
{
    public function index()
    {
        $user=Db::table('user')->select();
        return json($user);
    }

}